package com.qfedu.common.core.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.sql.Date;

/**
 * 用户实体类
 * @author <NAME>
 */
@TableName("user")
@Data
public class User {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String username;
    private String password;
    private String phone;

    @TableField("real_name")  // 显式指定列名
    private String realName;

    private String avatar;

    @TableField("identity")  // 重点修正：映射到数据库的identity列
    private String identityCard;

    private String email;
    private String gender;

    @TableField("invite_code")
    private String inviteCode;

    private Date birth;

    @TableField("pid")
    private Integer pid;

    @TableField("create_time")
    private Date createTime;

    @TableField("update_time")
    private Date updateTime;
}